home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1996 June / MACPOWER-1996-06.ISO.7z / MACPOWER-1996-06.ISO / Apple関連 / OpenDoc J-1.0 / 3rd Party Components / Attachmate CyberTerm / _SOM_ / som_CyberTermCyberExt.idl < prev    next >
Text File  |  1995-11-12  |  2KB  |  74 lines

  1. #ifndef _CYBERTERMCYBEREXT_
  2. #define _CYBERTERMCYBEREXT_
  3.  
  4. /* ・!・ hack hack hack to get the som compiler to work with CyberItem.idl */
  5. #undef __PRIVATE
  6. #define __PRIVATE__ 1
  7.  
  8. #include "CyberPartExtension.idl"
  9.  
  10.  
  11. //==============================================================================
  12. // Theory of Operation
  13. //==============================================================================
  14.  
  15. /*
  16.  The parts CyberPartExtension subclass catches Cyberdog specific messages
  17.  directed at the part. Traditionally, these messages are just passed
  18.  straight through to the real side of the part where they can be handled
  19.  in plain old C++ code.
  20.  
  21.  This IDL file stubs out all the calls in its superclass CyberPartExtension.
  22.  For almost all those calls, it just passes it up to the superclass.
  23.  
  24.  CyberTermCyberExt adds two methods of its own: GetBasePart(), SetBasePart(),
  25.  and their associated data member fBasePart which points to the real part.
  26.  
  27.  Among all the CyberPartExtension calls, the only ones where CyberTermCyberExt
  28.  does anything are:
  29.  -somInit            // Init the data member.
  30.  -SetCyberItem()    // Pass the notification on to the real part.
  31.  
  32.  That's it!
  33.  njp
  34.  
  35. */
  36.  
  37. // interface  CyberTermCyberExt;
  38.  
  39. // ・?・ could have that __PRIVATE__ stuff like CyberTerm
  40.  
  41. module CyberSample {            
  42.     interface som_CyberTermCyberExt : CyberPartExtension
  43.     {
  44.         void             SetBasePart(in somToken basePart);
  45.         somToken        GetBasePart(); 
  46.     
  47.  
  48.          
  49.     #ifdef __SOMIDL__
  50.         implementation
  51.         {
  52.         functionprefix = som_CyberTermCyberExt__;
  53.     
  54.         override:
  55.             somInit,
  56.             SetCyberItem;    
  57.  
  58.         releaseorder:
  59.             SetBasePart,
  60.             GetBasePart;
  61.             
  62.         majorversion = 1; minorversion = 0;
  63.     
  64.     #ifdef __PRIVATE__
  65.         somToken        fBasePart;
  66.     #endif
  67.         };
  68.     #endif
  69.     };
  70. };
  71.  
  72.  
  73. #endif // _CYBERTERMCYBEREXT_
  74.